package com.cyt.work.wb.service;

import com.cyt.base.model.dto.ReturnResult;
import com.cyt.work.wb.model.po.WbDevices;
import com.cyt.work.wb.model.vo.WbDevicesVo;
import com.cyt.sys.model.po.SysUser;
import com.cyt.sys.service.BaseService;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * 维保模块-设备表Service层接口类
 *
 * @author shengQiang Yu
 * @date 2019-11-28 9:26:43
 */
public interface WbDevicesService extends BaseService<WbDevices> {

    /**
     * 查询对象集合
     *
     * @param wbDevicesVo 对象
     * @return List 对象集合
     * @author shengQiang Yu
     * @date 2019-11-28 9:26:43
     */
    List<WbDevices> listExample(WbDevicesVo wbDevicesVo);

    /**
     * 分页查询
     *
     * @param wbDevicesVo 接受参数对象
     * @param pageNum          分页数
     * @param pageSize         每页显示条数
     * @return ReturnResult
     * @author shengQiang Yu
     * @date 2019-11-28 9:26:43
     */
    ReturnResult page(WbDevicesVo wbDevicesVo, int pageNum, int pageSize);

    WbDevices findById(String id);

    /**
     * 添加或更新
     *
     * @param wbDevicesVo 参数接受对象
     * @param sysUser      当前用户
     * @return ReturnResult
     * @author shengQiang Yu
     * @date 2019-11-28 9:26:43
     */
    ReturnResult addOrUpdate(HttpServletRequest request, WbDevicesVo wbDevicesVo, SysUser sysUser);

    /**
     * 根据条件逻辑删除
     *
     * @param wbDevicesVo 参数接受对象
     * @param sysUser      当前用户
     * @return ReturnResult
     * @author shengQiang Yu
     * @date 2019-11-28 9:26:43
     */
    ReturnResult remove(WbDevicesVo wbDevicesVo, SysUser sysUser);

    /**
     * 根据条件物理删除
     *
     * @param wbDevicesVo 参数接受对象
     * @param sysUser      当前用户
     * @return ReturnResult
     * @author shengQiang Yu
     * @date 2019-11-28 9:26:43
     */
    ReturnResult delete(WbDevicesVo wbDevicesVo, SysUser sysUser);
    /**
     * 查询集合
     *
     * @param wbDevicesVo
     * @return
     * @author shengQiang yu
     * @date 2019-11-29 11:52
     */
    List<WbDevices> selectByCondition(WbDevicesVo wbDevicesVo);

    ReturnResult importExcel(HttpServletRequest request, MultipartFile file, SysUser sysUser, String applyId);
}